#include "InputController.h"

bool InputController::IsJumpPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( jumpKey );
}

bool InputController::IsWalkLeftPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( walkLeftKey );
}

bool InputController::IsWalkRightPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( walkRightKey );
}

bool InputController::IsCrouchPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( crouchKey );
}

bool InputController::WasSelectionUpPressed( const gdn::Event& event )
{
	return ( event.type == gdn::Event::KeyPressed and event.key == selectionUpKey );
}

bool InputController::WasSelectionLeftPressed( const gdn::Event& event )
{
	return ( event.type == gdn::Event::KeyPressed and event.key == selectionLeftKey );
}

bool InputController::WasSelectionRightPressed( const gdn::Event& event )
{
	return ( event.type == gdn::Event::KeyPressed and event.key == selectionRightKey );
}

bool InputController::WasSelectionDownPressed( const gdn::Event& event )
{
	return ( event.type == gdn::Event::KeyPressed and event.key == selectionDownKey );
}

bool InputController::IsRunPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( runKey );
}

bool InputController::WasPausePressed( const gdn::Event& event )
{
	return ( event.type == gdn::Event::KeyPressed and event.key == pauseKey );
}

bool InputController::IsLookUpPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( lookUpKey );
}

bool InputController::IsLookLeftPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( lookLeftKey );
}

bool InputController::IsLookRightPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( lookRightKey );
}

bool InputController::IsLookDownPressed( const gdn::InputManager& input )
{
	return input.IsKeyDown( lookDownKey );
}
